package com.ecarx.engineermode.tab.model;

import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;

public class GroupItem extends ChildItem {

    Drawable icon;
    Drawable subIcon;

    public GroupItem(String itemName, Drawable icon, Drawable subIcon, Class<?> fragmentARouter) {
        super(itemName, fragmentARouter);
        this.icon = icon;
        this.subIcon = subIcon;
        this.subIcon.setTintList(ColorStateList.valueOf(Color.BLUE));
        this.subIcon.setTintMode(PorterDuff.Mode.SRC_IN);
    }

    public Drawable getIcon() {
        return icon;
    }

    public Drawable getSubIcon() {
        return subIcon;
    }
}